package sealte.test.jcommander;

import java.util.ArrayList;
import java.util.List;

import com.beust.jcommander.Parameter;

public class JCommanderExample {
	
	@Parameter(names="-params", description="Just parameters! Need 2 parameters.", required=true, arity=2)
	private List<String> parameters = new ArrayList<String>();
	
	@Parameter(names={"-log","-verbose"}, description="Level of verbosity")
	private Integer verbose = 1;
	
	@Parameter(names="-groups", description="Comma-separated list of group names to be run")
	private String groups;
	
	//@Parameter(names="-debug", description="Debug mode") usage:-debug --> true, empty --> use define value
	@Parameter(names="-debug", description="Debug mode", arity=1) //usage:-debug true --> true or false --> false
	private boolean debug = false;

	public List<String> getParameters() {
		return parameters;
	}

	public Integer getVerbose() {
		return verbose;
	}

	public String getGroups() {
		return groups;
	}

	public boolean isDebug() {
		return debug;
	}
}
